<h2>Login</h2>
<form method='POST' action='<?php echo site_url('login/check')?>'>
<?php if($error_msg):?>
<font color='red'><?php echo $error_msg;?></font>
<?php endif;?>
<div>
	<label>Username</label>
	<input type='text' name='username'/>
</div>

<div>
	<label>Password</label>
	<input type='password' name='password'/>
</div>
<div>
	<input type='submit' class="f-submit" value='Login'/>
</div>
</form>